{ pkgs ? (import <nixpkgs> {}).pkgsi686Linux }:

pkgs.stdenv.mkDerivation {
  name = "android2gnulinux";
  src = ./.;
  buildInputs = with pkgs; [
    xorg.libX11.dev
    xorg.libXrandr.dev
    glfw
  ];
  RUNTIMEDIR = "/andre/x86";
  buildPhase = "make x86 PREFIX=$out";
  installPhase = "make install PREFIX=$out";
}
